package com.platform.cim.service.test.client;

import com.platform.api.Response;
import com.platform.cim.pojo.sms.SendSmsReq;
import com.platform.cim.pojo.sms.SendSmsResp;
import com.platform.cim.service.test.impl.SendSmsTestHystrix;
import com.platform.cim.service.test.impl.SendSmsTestHystrixConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * feignClient
 *
 * @author baohuajie (baohuajie134@163.com)
 * @create 2021 01 01 4:32
 * @since 1.0.0
 */
@FeignClient(name = "out-service", contextId = "out-service-test", fallback = SendSmsTestHystrix.class, configuration = SendSmsTestHystrixConfig.class)
public interface OutTestFeignClient {
    @RequestMapping(value = "/out/sms/sendSmsTest", method = RequestMethod.POST)
    Response<SendSmsResp> sendSmsTest(@RequestBody SendSmsReq sendSmsReq);
}
